package ocl;


public class FieldRefExpression extends OclExpression {

	OclExpression exp;
	SimpleName field;
	
	public FieldRefExpression(OclExpression oclExpression, SimpleName simpleName) {
		this.exp = oclExpression;
		this.field = simpleName;
	}

	@Override
	public String toK() {
		return "(" + exp.toK() + "." + field.toK() + ")";
	}
}
